/**
 * 
 */
package i5.modelman.merge.dependency;

public enum ImplicationDirection{
	LEFT_TO_RIGHT("->"),
	RIGHT_TO_LEFT("<-"),
	BIDIRECTIONAL("<->");

	public String text;
	
	public static ImplicationDirection sign2Direction(String text){
		if( LEFT_TO_RIGHT.text.equals(text))
			return LEFT_TO_RIGHT;
		else if(BIDIRECTIONAL.text.equals(text))
			return BIDIRECTIONAL;
		else if(RIGHT_TO_LEFT.text.equals(text))
			return RIGHT_TO_LEFT;
		else
			return null;
	}
	
	ImplicationDirection(String text){this.text = text;}
	
	public String toString(){
		return text;
	}
}